/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package co.edu.unal.bioingenium.kbmed.knowledge.hierarchy.vo;

/**
 *
 * @author Alejandro Riveros Cruz
 */
public class Vertex {

    private String conceptId;

    /**
     *
     */
    public Vertex() {
    }

    /**
     *
     * @param conceptId
     */
    public Vertex(String conceptId) {
        this.conceptId = conceptId;
    }

    /**
     *
     * @return
     */
    public String getConceptId() {
        return conceptId;
    }

    /**
     *
     * @param conceptId
     */
    public void setConceptId(String conceptId) {
        this.conceptId = conceptId;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Vertex other = (Vertex) obj;
        if ((this.conceptId == null) ? (other.conceptId != null) : !this.conceptId.equals(other.conceptId)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 79 * hash + (this.conceptId != null ? this.conceptId.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return "Vertex{" + "conceptId=" + conceptId + '}';
    }
}
